From 8a8620bdb490043320d5bad1b0619315c9f542c6 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sat, 24 Jul 2010 19:06:19 +0000 Subject: [PATCH] $self to $this Remove 1 unused global --- includes/ProfilerSimpleTrace.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/ProfilerSimpleTrace.php b/includes/ProfilerSimpleTrace.php index 631192288c..8d1a0d81ba 100644 --- a/includes/ProfilerSimpleTrace.php +++ b/includes/ProfilerSimpleTrace.php @@ -30,7 +30,6 @@ class ProfilerSimpleTrace extends ProfilerSimple { } function profileIn($functionname) { - global $wgDebugFunctionEntry; $this->mWorkStack[] = array($functionname, count( $this->mWorkStack ), microtime(true), $this->getCpuTime()); $this->trace .= " " . sprintf("%6.1f",$this->memoryDiff()) . str_repeat( " ", count($this->mWorkStack)) . " > " . $functionname . "\n"; } @@ -53,7 +52,7 @@ class ProfilerSimpleTrace extends ProfilerSimple { $this->trace .= $message . "\n"; } elseif ($ofname != $functionname) { - $self->trace .= "Profiling error: in({$ofname}), out($functionname)"; + $this->trace .= "Profiling error: in({$ofname}), out($functionname)"; } $elapsedcpu = $this->getCpuTime() - $octime; $elapsedreal = microtime(true) - $ortime; -- 2.20.1